// pages/tobepaiddetail/tobepaiddetail.js
const app = getApp();
Page({
  /**
   * 页面的初始数据
   */
  data: {
    statusBarHeight: app.globalData.statusBarHeight,
    fullHeight: app.globalData.fullcontain,
    navmess:{
      navtitle: "待付款订单详情",
      backhide: 0,
      topheight: 1,
    },
    selectData3:["全部",1,2,3],
    index: 0,
    proorderlist:{
      proNo: "D099343443-2",
      opperson: "陈小花",
      store: "深大店-深圳市",
      itemlist:[
        {
          "imgUrl": "./images/proimg.png",
          "name": "日本丹盛Dance樱花指甲油【产品】",
          "state": "已服务",
          "num": "1",
          "oldprice": "199.00",
          "vipprice": "499.99",
          "actprice": "999.00",
          "apptime": "2020-7-13  10:00",
          "serperson": "特朗普",
          "serperphone": "138****7766",
          "sertime": "2020-06-06  11:00-12:30"
        }
      ],
      treatlist:[

      ],
      productlist:[

      ],
      allpay: "3880.00",
      paystate: "未付款",
      coupon: "新手300元现金券",
      deduct: "150.00",
      deductname: "优惠券",
      integral: "58000",
      integraldiscount: "58.00",
      paytype: "积分",
      finalpay: "1888.00",
      accountNo: "88809324242242323232",
      accountType: "女王卡",
      accountmon: "8800.00",
      accountgive: "900.00",
      accountgiveuse: "200.00",
      accountsavepro: "M0902",
      accountname: "激光美白SPA",
    }
  },
  // 点击下拉显示框
  selectTap() {
    this.setData({
      selectShow: !this.data.selectShow
    });
  },
  // 点击下拉列表
  optionTap(e) {
    let Index = e.currentTarget.dataset.index;//获取点击的下拉列表的下标
    this.setData({
      index: Index,
      selectShow: !this.data.selectShow
    });
  },
  pageto: function(e){
    var url = e.currentTarget.dataset.url,
        data = e.currentTarget.dataset.datobj;
    app.goto(url,data);
  },
  bindPickerChange: function(e) {
    console.log('picker发送选择改变，携带值为', e.detail.value)
    this.setData({
      index: e.detail.value
    })
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})